<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/xhtml;charset=utf-8" http-equiv="Content-Type"/>
<meta content="IE=9" http-equiv="X-UA-Compatible"/>
<meta content="Doxygen 1.8.13" name="generator"/>
<title>OpenCV: cv::dnn::Layer Class Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script src="../../jquery.js" type="text/javascript"></script>
<script src="../../dynsections.js" type="text/javascript"></script>
<script src="../../tutorial-utils.js" type="text/javascript"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script src="../../search/searchdata.js" type="text/javascript"></script>
<script src="../../search/search.js" type="text/javascript"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js" type="text/javascript"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellpadding="0" cellspacing="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
    <span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script src="../../menudata.js" type="text/javascript"></script>
<script src="../../menu.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow" onkeydown="return searchBox.OnSearchSelectKey(event)" onmouseout="return searchBox.OnSearchSelectHide()" onmouseover="return searchBox.OnSearchSelectShow()">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe frameborder="0" id="MSearchResults" name="MSearchResults" src="javascript:void(0)">
</iframe>
</div>
<div class="navpath" id="nav-path">
  <ul>
<li class="navelem"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></li><li class="navelem"><a class="el" href="../../df/d57/namespacecv_1_1dnn.html">dnn</a></li><li class="navelem"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html">Layer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-attribs">Public Attributes</a> |
<a href="../../d8/d4d/classcv_1_1dnn_1_1Layer-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">cv::dnn::Layer Class Reference<div class="ingroups"><a class="el" href="../../d6/d0f/group__dnn.html">Deep Neural Network module</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<p>This interface class allows to build new Layers - are building blocks of networks.  
 <a href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#details">More...</a></p>
<p><code>#include &lt;opencv2/dnn/dnn.hpp&gt;</code></p>
<div class="dynheader">
Inheritance diagram for cv::dnn::Layer:</div>
<div class="dyncontent">
 <div class="center">
  <img alt="" src="../../d3/d6c/classcv_1_1dnn_1_1Layer.png" usemap="#cv::dnn::Layer_map"/>
  <map id="cv::dnn::Layer_map" name="cv::dnn::Layer_map">
<area alt="cv::Algorithm" coords="0,0,194,24" href="../../d3/d46/classcv_1_1Algorithm.html" shape="rect" title="This is a base class for all more or less complex algorithms in OpenCV. "/>
<area alt="cv::dnn::AccumLayer" coords="204,112,398,136" href="../../d2/d08/classcv_1_1dnn_1_1AccumLayer.html" shape="rect"/>
<area alt="cv::dnn::ActivationLayer" coords="204,168,398,192" href="../../dc/d75/classcv_1_1dnn_1_1ActivationLayer.html" shape="rect"/>
<area alt="cv::dnn::BaseConvolutionLayer" coords="204,224,398,248" href="../../d5/d1f/classcv_1_1dnn_1_1BaseConvolutionLayer.html" shape="rect"/>
<area alt="cv::dnn::BlankLayer" coords="204,280,398,304" href="../../d8/d2d/classcv_1_1dnn_1_1BlankLayer.html" shape="rect"/>
<area alt="cv::dnn::ConcatLayer" coords="204,336,398,360" href="../../da/d5c/classcv_1_1dnn_1_1ConcatLayer.html" shape="rect"/>
<area alt="cv::dnn::ConstLayer" coords="204,392,398,416" href="../../de/dff/classcv_1_1dnn_1_1ConstLayer.html" shape="rect"/>
<area alt="cv::dnn::CorrelationLayer" coords="204,448,398,472" href="../../d4/d8a/classcv_1_1dnn_1_1CorrelationLayer.html" shape="rect"/>
<area alt="cv::dnn::CropAndResizeLayer" coords="204,504,398,528" href="../../d8/d53/classcv_1_1dnn_1_1CropAndResizeLayer.html" shape="rect"/>
<area alt="cv::dnn::CropLayer" coords="204,560,398,584" href="../../d7/d86/classcv_1_1dnn_1_1CropLayer.html" shape="rect"/>
<area alt="cv::dnn::DataAugmentationLayer" coords="204,616,398,640" href="../../d3/db5/classcv_1_1dnn_1_1DataAugmentationLayer.html" shape="rect"/>
<area alt="cv::dnn::DetectionOutputLayer" coords="204,672,398,696" href="../../da/dbd/classcv_1_1dnn_1_1DetectionOutputLayer.html" shape="rect" title="Detection output layer. "/>
<area alt="cv::dnn::EltwiseLayer" coords="204,728,398,752" href="../../d6/d6a/classcv_1_1dnn_1_1EltwiseLayer.html" shape="rect" title="Element wise operation on inputs. "/>
<area alt="cv::dnn::FlattenLayer" coords="204,784,398,808" href="../../d4/da3/classcv_1_1dnn_1_1FlattenLayer.html" shape="rect"/>
<area alt="cv::dnn::FlowWarpLayer" coords="204,840,398,864" href="../../db/de2/classcv_1_1dnn_1_1FlowWarpLayer.html" shape="rect"/>
<area alt="cv::dnn::InnerProductLayer" coords="204,896,398,920" href="../../d0/dc7/classcv_1_1dnn_1_1InnerProductLayer.html" shape="rect"/>
<area alt="cv::dnn::InterpLayer" coords="204,952,398,976" href="../../de/d56/classcv_1_1dnn_1_1InterpLayer.html" shape="rect" title="Bilinear resize layer from https://github.com/cdmh/deeplab-public-ver2. "/>
<area alt="cv::dnn::LRNLayer" coords="204,1008,398,1032" href="../../d8/d8d/classcv_1_1dnn_1_1LRNLayer.html" shape="rect"/>
<area alt="cv::dnn::LSTMLayer" coords="204,1064,398,1088" href="../../db/d3e/classcv_1_1dnn_1_1LSTMLayer.html" shape="rect" title="LSTM recurrent layer. "/>
<area alt="cv::dnn::MaxUnpoolLayer" coords="204,1120,398,1144" href="../../d1/d59/classcv_1_1dnn_1_1MaxUnpoolLayer.html" shape="rect"/>
<area alt="cv::dnn::MVNLayer" coords="204,1176,398,1200" href="../../d4/db5/classcv_1_1dnn_1_1MVNLayer.html" shape="rect"/>
<area alt="cv::dnn::NormalizeBBoxLayer" coords="204,1232,398,1256" href="../../dc/df8/classcv_1_1dnn_1_1NormalizeBBoxLayer.html" shape="rect" title=" - normalization layer. "/>
<area alt="cv::dnn::PaddingLayer" coords="204,1288,398,1312" href="../../d4/db2/classcv_1_1dnn_1_1PaddingLayer.html" shape="rect" title="Adds extra values for specific axes. "/>
<area alt="cv::dnn::PermuteLayer" coords="204,1344,398,1368" href="../../d2/d3c/classcv_1_1dnn_1_1PermuteLayer.html" shape="rect"/>
<area alt="cv::dnn::PoolingLayer" coords="204,1400,398,1424" href="../../de/d7d/classcv_1_1dnn_1_1PoolingLayer.html" shape="rect"/>
<area alt="cv::dnn::PriorBoxLayer" coords="204,1456,398,1480" href="../../da/d1e/classcv_1_1dnn_1_1PriorBoxLayer.html" shape="rect"/>
<area alt="cv::dnn::ProposalLayer" coords="204,1512,398,1536" href="../../da/d6b/classcv_1_1dnn_1_1ProposalLayer.html" shape="rect"/>
<area alt="cv::dnn::RegionLayer" coords="204,1568,398,1592" href="../../d1/d21/classcv_1_1dnn_1_1RegionLayer.html" shape="rect"/>
<area alt="cv::dnn::ReorgLayer" coords="204,1624,398,1648" href="../../d6/da3/classcv_1_1dnn_1_1ReorgLayer.html" shape="rect"/>
<area alt="cv::dnn::ReshapeLayer" coords="204,1680,398,1704" href="../../db/d15/classcv_1_1dnn_1_1ReshapeLayer.html" shape="rect"/>
<area alt="cv::dnn::ResizeLayer" coords="204,1736,398,1760" href="../../db/d38/classcv_1_1dnn_1_1ResizeLayer.html" shape="rect" title="Resize input 4-dimensional blob by nearest neighbor or bilinear strategy. "/>
<area alt="cv::dnn::RNNLayer" coords="204,1792,398,1816" href="../../dd/dfd/classcv_1_1dnn_1_1RNNLayer.html" shape="rect" title="Classical recurrent layer. "/>
<area alt="cv::dnn::ScaleLayer" coords="204,1848,398,1872" href="../../dd/dde/classcv_1_1dnn_1_1ScaleLayer.html" shape="rect"/>
<area alt="cv::dnn::ShiftLayer" coords="204,1904,398,1928" href="../../d3/dd8/classcv_1_1dnn_1_1ShiftLayer.html" shape="rect"/>
<area alt="cv::dnn::ShuffleChannelLayer" coords="204,1960,398,1984" href="../../de/d24/classcv_1_1dnn_1_1ShuffleChannelLayer.html" shape="rect"/>
<area alt="cv::dnn::SliceLayer" coords="204,2016,398,2040" href="../../de/d61/classcv_1_1dnn_1_1SliceLayer.html" shape="rect"/>
<area alt="cv::dnn::SoftmaxLayer" coords="204,2072,398,2096" href="../../d8/d18/classcv_1_1dnn_1_1SoftmaxLayer.html" shape="rect"/>
<area alt="cv::dnn::SplitLayer" coords="204,2128,398,2152" href="../../dd/df9/classcv_1_1dnn_1_1SplitLayer.html" shape="rect"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a32c409ae0f071cb1abd38e34592566e0"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a32c409ae0f071cb1abd38e34592566e0">Layer</a> ()</td></tr>
<tr class="separator:a32c409ae0f071cb1abd38e34592566e0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af9a80ccb673389ff6664c8b5a94468a5"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#af9a80ccb673389ff6664c8b5a94468a5">Layer</a> (const <a class="el" href="../../db/db6/classcv_1_1dnn_1_1LayerParams.html">LayerParams</a> &amp;params)</td></tr>
<tr class="memdesc:af9a80ccb673389ff6664c8b5a94468a5"><td class="mdescLeft"> </td><td class="mdescRight">Initializes only <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ab2017c5a2f17d01868393985e3abe457" title="Name of the layer instance, can be used for logging or other internal purposes. ">name</a>, <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a5f3cdb2524e281094e14e212a76a2d38" title="Type name which was used for creating layer by layer factory. ">type</a> and <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a9a5578e0b3a0ec0301fb7320b54aa6ed" title="List of learned parameters must be stored here to allow read them by using Net::getParam(). ">blobs</a> fields.  <a href="#af9a80ccb673389ff6664c8b5a94468a5">More...</a><br/></td></tr>
<tr class="separator:af9a80ccb673389ff6664c8b5a94468a5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af51333431c711b8ed12ada5dc4824323"><td align="right" class="memItemLeft" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#af51333431c711b8ed12ada5dc4824323">~Layer</a> ()</td></tr>
<tr class="separator:af51333431c711b8ed12ada5dc4824323"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8af8ddbbb682edf69f1abd78ea25c79b"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a8af8ddbbb682edf69f1abd78ea25c79b">applyHalideScheduler</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; &amp;node, const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *&gt; &amp;inputs, const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;outputs, int targetId) const</td></tr>
<tr class="memdesc:a8af8ddbbb682edf69f1abd78ea25c79b"><td class="mdescLeft"> </td><td class="mdescRight">Automatic Halide scheduling based on layer hyper-parameters.  <a href="#a8af8ddbbb682edf69f1abd78ea25c79b">More...</a><br/></td></tr>
<tr class="separator:a8af8ddbbb682edf69f1abd78ea25c79b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a070e355e782f14f97879f18747fd70fc"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a070e355e782f14f97879f18747fd70fc">finalize</a> (const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *&gt; &amp;input, std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;output)</td></tr>
<tr class="memdesc:a070e355e782f14f97879f18747fd70fc"><td class="mdescLeft"> </td><td class="mdescRight">Computes and sets internal parameters according to inputs, outputs and blobs.  <a href="#a070e355e782f14f97879f18747fd70fc">More...</a><br/></td></tr>
<tr class="separator:a070e355e782f14f97879f18747fd70fc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a45db2ad86a84737afa623976a957a7e6"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a45db2ad86a84737afa623976a957a7e6">finalize</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> inputs, <a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> outputs)</td></tr>
<tr class="memdesc:a45db2ad86a84737afa623976a957a7e6"><td class="mdescLeft"> </td><td class="mdescRight">Computes and sets internal parameters according to inputs, outputs and blobs.  <a href="#a45db2ad86a84737afa623976a957a7e6">More...</a><br/></td></tr>
<tr class="separator:a45db2ad86a84737afa623976a957a7e6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b9321b1c809d7804e602b6a862d2217"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a0b9321b1c809d7804e602b6a862d2217">finalize</a> (const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;inputs, std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;outputs)</td></tr>
<tr class="memdesc:a0b9321b1c809d7804e602b6a862d2217"><td class="mdescLeft"> </td><td class="mdescRight">This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  <a href="#a0b9321b1c809d7804e602b6a862d2217">More...</a><br/></td></tr>
<tr class="separator:a0b9321b1c809d7804e602b6a862d2217"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a713fddc29f4cb873ea720a2c034dff48"><td align="right" class="memItemLeft" valign="top">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a713fddc29f4cb873ea720a2c034dff48">finalize</a> (const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;inputs)</td></tr>
<tr class="memdesc:a713fddc29f4cb873ea720a2c034dff48"><td class="mdescLeft"> </td><td class="mdescRight">This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  <a href="#a713fddc29f4cb873ea720a2c034dff48">More...</a><br/></td></tr>
<tr class="separator:a713fddc29f4cb873ea720a2c034dff48"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a39236126b72a365b94b132abd5bd946b"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a39236126b72a365b94b132abd5bd946b">forward</a> (std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *&gt; &amp;input, std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;output, std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;internals)</td></tr>
<tr class="memdesc:a39236126b72a365b94b132abd5bd946b"><td class="mdescLeft"> </td><td class="mdescRight">Given the <code>input</code> blobs, computes the output <code>blobs</code>.  <a href="#a39236126b72a365b94b132abd5bd946b">More...</a><br/></td></tr>
<tr class="separator:a39236126b72a365b94b132abd5bd946b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab3c05d3e918cd96c39bc95aee0522353"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ab3c05d3e918cd96c39bc95aee0522353">forward</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> inputs, <a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> outputs, <a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> internals)</td></tr>
<tr class="memdesc:ab3c05d3e918cd96c39bc95aee0522353"><td class="mdescLeft"> </td><td class="mdescRight">Given the <code>input</code> blobs, computes the output <code>blobs</code>.  <a href="#ab3c05d3e918cd96c39bc95aee0522353">More...</a><br/></td></tr>
<tr class="separator:ab3c05d3e918cd96c39bc95aee0522353"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae240acf2b7ad43531ca903c927334c8a"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ae240acf2b7ad43531ca903c927334c8a">forward_fallback</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> inputs, <a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> outputs, <a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> internals)</td></tr>
<tr class="memdesc:ae240acf2b7ad43531ca903c927334c8a"><td class="mdescLeft"> </td><td class="mdescRight">Given the <code>input</code> blobs, computes the output <code>blobs</code>.  <a href="#ae240acf2b7ad43531ca903c927334c8a">More...</a><br/></td></tr>
<tr class="separator:ae240acf2b7ad43531ca903c927334c8a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9a2476f50e854bbeb873fdfd18144c32"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga7cde0074dfd288f2d70c0e035dacb28a">int64</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a9a2476f50e854bbeb873fdfd18144c32">getFLOPS</a> (const std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp;inputs, const std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp;outputs) const</td></tr>
<tr class="separator:a9a2476f50e854bbeb873fdfd18144c32"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3405ff43150088f3cc1d54f7e9b3ec29"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a3405ff43150088f3cc1d54f7e9b3ec29">getMemoryShapes</a> (const std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp;inputs, const int requiredOutputs, std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp;outputs, std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp;internals) const</td></tr>
<tr class="separator:a3405ff43150088f3cc1d54f7e9b3ec29"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a47f9b49d9614ae8c1d76ff19eda3dae1"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a47f9b49d9614ae8c1d76ff19eda3dae1">getScaleShift</a> (<a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;scale, <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp;shift) const</td></tr>
<tr class="memdesc:a47f9b49d9614ae8c1d76ff19eda3dae1"><td class="mdescLeft"> </td><td class="mdescRight">Returns parameters of layers with channel-wise multiplication and addition.  <a href="#a47f9b49d9614ae8c1d76ff19eda3dae1">More...</a><br/></td></tr>
<tr class="separator:a47f9b49d9614ae8c1d76ff19eda3dae1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3f8f7a01976709a0112be796dc8662ad"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a3f8f7a01976709a0112be796dc8662ad">initCUDA</a> (void *context, const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt;&gt; &amp;inputs, const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt;&gt; &amp;outputs)</td></tr>
<tr class="memdesc:a3f8f7a01976709a0112be796dc8662ad"><td class="mdescLeft"> </td><td class="mdescRight">Returns a CUDA backend node.  <a href="#a3f8f7a01976709a0112be796dc8662ad">More...</a><br/></td></tr>
<tr class="separator:a3f8f7a01976709a0112be796dc8662ad"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0b980c3fbb9d0899484fd0ef1e2b4881"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a0b980c3fbb9d0899484fd0ef1e2b4881">initHalide</a> (const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt; &gt; &amp;inputs)</td></tr>
<tr class="memdesc:a0b980c3fbb9d0899484fd0ef1e2b4881"><td class="mdescLeft"> </td><td class="mdescRight">Returns Halide backend node.  <a href="#a0b980c3fbb9d0899484fd0ef1e2b4881">More...</a><br/></td></tr>
<tr class="separator:a0b980c3fbb9d0899484fd0ef1e2b4881"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a12e3a5730c04d9eb3944883bfe94ed4a"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a12e3a5730c04d9eb3944883bfe94ed4a">initInfEngine</a> (const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt; &gt; &amp;inputs)</td></tr>
<tr class="separator:a12e3a5730c04d9eb3944883bfe94ed4a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aff6da8252d3558dbb23251b035aff5f6"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#aff6da8252d3558dbb23251b035aff5f6">initNgraph</a> (const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt; &gt; &amp;inputs, const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; &gt; &amp;nodes)</td></tr>
<tr class="separator:aff6da8252d3558dbb23251b035aff5f6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95515bef8a2b8525248c1d7588c672be"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a95515bef8a2b8525248c1d7588c672be">initVkCom</a> (const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt; &gt; &amp;inputs)</td></tr>
<tr class="separator:a95515bef8a2b8525248c1d7588c672be"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a93212cf0fe50ace40af0f2b4f42263c4"><td align="right" class="memItemLeft" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a93212cf0fe50ace40af0f2b4f42263c4">inputNameToIndex</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> inputName)</td></tr>
<tr class="memdesc:a93212cf0fe50ace40af0f2b4f42263c4"><td class="mdescLeft"> </td><td class="mdescRight">Returns index of input blob into the input array.  <a href="#a93212cf0fe50ace40af0f2b4f42263c4">More...</a><br/></td></tr>
<tr class="separator:a93212cf0fe50ace40af0f2b4f42263c4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a60ffc8238f3fa26cd3f49daa7ac0884b"><td align="right" class="memItemLeft" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a60ffc8238f3fa26cd3f49daa7ac0884b">outputNameToIndex</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;outputName)</td></tr>
<tr class="memdesc:a60ffc8238f3fa26cd3f49daa7ac0884b"><td class="mdescLeft"> </td><td class="mdescRight">Returns index of output blob in output array.  <a href="#a60ffc8238f3fa26cd3f49daa7ac0884b">More...</a><br/></td></tr>
<tr class="separator:a60ffc8238f3fa26cd3f49daa7ac0884b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa5697f2be7791040e7fb45d938211a93"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#aa5697f2be7791040e7fb45d938211a93">run</a> (const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;inputs, std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;outputs, std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp;internals)</td></tr>
<tr class="memdesc:aa5697f2be7791040e7fb45d938211a93"><td class="mdescLeft"> </td><td class="mdescRight">Allocates layer and computes output.  <a href="#aa5697f2be7791040e7fb45d938211a93">More...</a><br/></td></tr>
<tr class="separator:aa5697f2be7791040e7fb45d938211a93"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a43dab9b2aae0d48ae01cb70112009ee1"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a43dab9b2aae0d48ae01cb70112009ee1">setActivation</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../dc/d75/classcv_1_1dnn_1_1ActivationLayer.html">ActivationLayer</a> &gt; &amp;layer)</td></tr>
<tr class="memdesc:a43dab9b2aae0d48ae01cb70112009ee1"><td class="mdescLeft"> </td><td class="mdescRight">Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case.  <a href="#a43dab9b2aae0d48ae01cb70112009ee1">More...</a><br/></td></tr>
<tr class="separator:a43dab9b2aae0d48ae01cb70112009ee1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad1bf1e5d77da2f75ea241e588c906177"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ad1bf1e5d77da2f75ea241e588c906177">setParamsFrom</a> (const <a class="el" href="../../db/db6/classcv_1_1dnn_1_1LayerParams.html">LayerParams</a> &amp;params)</td></tr>
<tr class="memdesc:ad1bf1e5d77da2f75ea241e588c906177"><td class="mdescLeft"> </td><td class="mdescRight">Initializes only <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ab2017c5a2f17d01868393985e3abe457" title="Name of the layer instance, can be used for logging or other internal purposes. ">name</a>, <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a5f3cdb2524e281094e14e212a76a2d38" title="Type name which was used for creating layer by layer factory. ">type</a> and <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a9a5578e0b3a0ec0301fb7320b54aa6ed" title="List of learned parameters must be stored here to allow read them by using Net::getParam(). ">blobs</a> fields.  <a href="#ad1bf1e5d77da2f75ea241e588c906177">More...</a><br/></td></tr>
<tr class="separator:ad1bf1e5d77da2f75ea241e588c906177"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a14017804fd5e8c28807263bbdb415383"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a14017804fd5e8c28807263bbdb415383">supportBackend</a> (int backendId)</td></tr>
<tr class="memdesc:a14017804fd5e8c28807263bbdb415383"><td class="mdescLeft"> </td><td class="mdescRight">Ask layer if it support specific backend for doing computations.  <a href="#a14017804fd5e8c28807263bbdb415383">More...</a><br/></td></tr>
<tr class="separator:a14017804fd5e8c28807263bbdb415383"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afd329d7dfd4e38239bef14ecee9977cb"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#afd329d7dfd4e38239bef14ecee9977cb">tryAttach</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; &amp;node)</td></tr>
<tr class="memdesc:afd329d7dfd4e38239bef14ecee9977cb"><td class="mdescLeft"> </td><td class="mdescRight">Implement layers fusing.  <a href="#afd329d7dfd4e38239bef14ecee9977cb">More...</a><br/></td></tr>
<tr class="separator:afd329d7dfd4e38239bef14ecee9977cb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae52d400e21d50885742aed859ce732ba"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ae52d400e21d50885742aed859ce732ba">tryFuse</a> (<a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html">Layer</a> &gt; &amp;top)</td></tr>
<tr class="memdesc:ae52d400e21d50885742aed859ce732ba"><td class="mdescLeft"> </td><td class="mdescRight">Try to fuse current layer with a next one.  <a href="#ae52d400e21d50885742aed859ce732ba">More...</a><br/></td></tr>
<tr class="separator:ae52d400e21d50885742aed859ce732ba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae4b9f1b91fe12e625c1754c42c937a79"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ae4b9f1b91fe12e625c1754c42c937a79">unsetAttached</a> ()</td></tr>
<tr class="memdesc:ae4b9f1b91fe12e625c1754c42c937a79"><td class="mdescLeft"> </td><td class="mdescRight">"Deattaches" all the layers, attached to particular layer.  <a href="#ae4b9f1b91fe12e625c1754c42c937a79">More...</a><br/></td></tr>
<tr class="separator:ae4b9f1b91fe12e625c1754c42c937a79"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa41dc25bc70105151a6a96b59746bb14"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#aa41dc25bc70105151a6a96b59746bb14">updateMemoryShapes</a> (const std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp;inputs)</td></tr>
<tr class="separator:aa41dc25bc70105151a6a96b59746bb14"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pub_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a827c8b2781ed17574805f373e6054ff1">Algorithm</a> ()</td></tr>
<tr class="separator:a827c8b2781ed17574805f373e6054ff1 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a8ae826127fa0f1f8d10a24841bd376f8">~Algorithm</a> ()</td></tr>
<tr class="separator:a8ae826127fa0f1f8d10a24841bd376f8 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aec9c965448e4dc851d7cacd3abd84cd1">clear</a> ()</td></tr>
<tr class="memdesc:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Clears the algorithm state.  <a href="../../d3/d46/classcv_1_1Algorithm.html#aec9c965448e4dc851d7cacd3abd84cd1">More...</a><br/></td></tr>
<tr class="separator:aec9c965448e4dc851d7cacd3abd84cd1 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ab6a18f1825475643e94381697d413972">empty</a> () const</td></tr>
<tr class="memdesc:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Returns true if the <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html" title="This is a base class for all more or less complex algorithms in OpenCV. ">Algorithm</a> is empty (e.g. in the very beginning or after unsuccessful read.  <a href="../../d3/d46/classcv_1_1Algorithm.html#ab6a18f1825475643e94381697d413972">More...</a><br/></td></tr>
<tr class="separator:ab6a18f1825475643e94381697d413972 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a286fc82744ccab3d248aca44524266a9">getDefaultName</a> () const</td></tr>
<tr class="separator:a286fc82744ccab3d248aca44524266a9 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#aef2ad3f4145bd6e8c3664eb1c4b5e1e6">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;fn)</td></tr>
<tr class="memdesc:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Reads algorithm parameters from a file storage.  <a href="../../d3/d46/classcv_1_1Algorithm.html#aef2ad3f4145bd6e8c3664eb1c4b5e1e6">More...</a><br/></td></tr>
<tr class="separator:aef2ad3f4145bd6e8c3664eb1c4b5e1e6 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a0a880744bc4e3f45711444571df47d67">save</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename) const</td></tr>
<tr class="separator:a0a880744bc4e3f45711444571df47d67 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a1f8ad7b8add515077367fb9949a174d2">write</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="memdesc:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Stores algorithm parameters in a file storage.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a1f8ad7b8add515077367fb9949a174d2">More...</a><br/></td></tr>
<tr class="separator:a1f8ad7b8add515077367fb9949a174d2 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">write</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &gt; &amp;fs, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;name=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>()) const</td></tr>
<tr class="memdesc:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a763a62d1b03042eef7d7fc3ac6c87c79">More...</a><br/></td></tr>
<tr class="separator:a763a62d1b03042eef7d7fc3ac6c87c79 inherit pub_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a9a5578e0b3a0ec0301fb7320b54aa6ed"><td align="right" class="memItemLeft" valign="top">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a9a5578e0b3a0ec0301fb7320b54aa6ed">blobs</a></td></tr>
<tr class="memdesc:a9a5578e0b3a0ec0301fb7320b54aa6ed"><td class="mdescLeft"> </td><td class="mdescRight">List of learned parameters must be stored here to allow read them by using <a class="el" href="../../db/d30/classcv_1_1dnn_1_1Net.html#a767f2a693ba409bedc442adca3b71511" title="Returns parameter blob of the layer. ">Net::getParam()</a>.  <a href="#a9a5578e0b3a0ec0301fb7320b54aa6ed">More...</a><br/></td></tr>
<tr class="separator:a9a5578e0b3a0ec0301fb7320b54aa6ed"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab2017c5a2f17d01868393985e3abe457"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ab2017c5a2f17d01868393985e3abe457">name</a></td></tr>
<tr class="memdesc:ab2017c5a2f17d01868393985e3abe457"><td class="mdescLeft"> </td><td class="mdescRight">Name of the layer instance, can be used for logging or other internal purposes.  <a href="#ab2017c5a2f17d01868393985e3abe457">More...</a><br/></td></tr>
<tr class="separator:ab2017c5a2f17d01868393985e3abe457"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a35e0e4f0e8441d1b0e62c596df6b1942"><td align="right" class="memItemLeft" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a35e0e4f0e8441d1b0e62c596df6b1942">preferableTarget</a></td></tr>
<tr class="memdesc:a35e0e4f0e8441d1b0e62c596df6b1942"><td class="mdescLeft"> </td><td class="mdescRight">prefer target for layer forwarding  <a href="#a35e0e4f0e8441d1b0e62c596df6b1942">More...</a><br/></td></tr>
<tr class="separator:a35e0e4f0e8441d1b0e62c596df6b1942"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5f3cdb2524e281094e14e212a76a2d38"><td align="right" class="memItemLeft" valign="top"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a5f3cdb2524e281094e14e212a76a2d38">type</a></td></tr>
<tr class="memdesc:a5f3cdb2524e281094e14e212a76a2d38"><td class="mdescLeft"> </td><td class="mdescRight">Type name which was used for creating layer by layer factory.  <a href="#a5f3cdb2524e281094e14e212a76a2d38">More...</a><br/></td></tr>
<tr class="separator:a5f3cdb2524e281094e14e212a76a2d38"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_static_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Static Public Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">load</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;filename, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Loads algorithm from the file.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a623841c33b58ea9c4847da04607e067b">More...</a><br/></td></tr>
<tr class="separator:a623841c33b58ea9c4847da04607e067b inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">loadFromString</a> (const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;strModel, const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp;objname=<a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a>())</td></tr>
<tr class="memdesc:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Loads algorithm from a String.  <a href="../../d3/d46/classcv_1_1Algorithm.html#a3ba305a10d02479c13cf7d169c321547">More...</a><br/></td></tr>
<tr class="separator:a3ba305a10d02479c13cf7d169c321547 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memTemplParams" colspan="2">template&lt;typename _Tp &gt; </td></tr>
<tr class="memitem:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td align="right" class="memTemplItemLeft" valign="top">static <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; _Tp &gt; </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">read</a> (const <a class="el" href="../../de/dd9/classcv_1_1FileNode.html">FileNode</a> &amp;fn)</td></tr>
<tr class="memdesc:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="mdescLeft"> </td><td class="mdescRight">Reads algorithm from the file node.  <a href="../../d3/d46/classcv_1_1Algorithm.html#ad8c591bacb34c485f5b7a250c314fc53">More...</a><br/></td></tr>
<tr class="separator:ad8c591bacb34c485f5b7a250c314fc53 inherit pub_static_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="inherit_header pro_methods_classcv_1_1Algorithm"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classcv_1_1Algorithm')"><img alt="-" src="../../closed.png"/> Protected Member Functions inherited from <a class="el" href="../../d3/d46/classcv_1_1Algorithm.html">cv::Algorithm</a></td></tr>
<tr class="memitem:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td align="right" class="memItemLeft" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d3/d46/classcv_1_1Algorithm.html#a68eeca71617474ad3d4561786f0289d2">writeFormat</a> (<a class="el" href="../../da/d56/classcv_1_1FileStorage.html">FileStorage</a> &amp;fs) const</td></tr>
<tr class="separator:a68eeca71617474ad3d4561786f0289d2 inherit pro_methods_classcv_1_1Algorithm"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a id="details" name="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>This interface class allows to build new Layers - are building blocks of networks. </p>
<p>Each class, derived from <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html" title="This interface class allows to build new Layers - are building blocks of networks. ">Layer</a>, must implement allocate() methods to declare own outputs and <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a39236126b72a365b94b132abd5bd946b" title="Given the input blobs, computes the output blobs. ">forward()</a> to compute outputs. Also before using the new layer into networks you must register your layer by using one of <a class="el" href="../../df/dc1/group__dnnLayerFactory.html">LayerFactory</a> macros. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a32c409ae0f071cb1abd38e34592566e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a32c409ae0f071cb1abd38e34592566e0">◆ </a></span>Layer() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cv::dnn::Layer::Layer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
</div>
</div>
<a id="af9a80ccb673389ff6664c8b5a94468a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9a80ccb673389ff6664c8b5a94468a5">◆ </a></span>Layer() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">cv::dnn::Layer::Layer </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/db6/classcv_1_1dnn_1_1LayerParams.html">LayerParams</a> &amp; </td>
          <td class="paramname"><em>params</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Initializes only <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ab2017c5a2f17d01868393985e3abe457" title="Name of the layer instance, can be used for logging or other internal purposes. ">name</a>, <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a5f3cdb2524e281094e14e212a76a2d38" title="Type name which was used for creating layer by layer factory. ">type</a> and <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a9a5578e0b3a0ec0301fb7320b54aa6ed" title="List of learned parameters must be stored here to allow read them by using Net::getParam(). ">blobs</a> fields. </p>
</div>
</div>
<a id="af51333431c711b8ed12ada5dc4824323"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af51333431c711b8ed12ada5dc4824323">◆ </a></span>~Layer()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual cv::dnn::Layer::~Layer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a8af8ddbbb682edf69f1abd78ea25c79b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8af8ddbbb682edf69f1abd78ea25c79b">◆ </a></span>applyHalideScheduler()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::dnn::Layer::applyHalideScheduler </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; &amp; </td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *&gt; &amp; </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>targetId</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Automatic Halide scheduling based on layer hyper-parameters. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>Backend node with Halide functions. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">inputs</td><td>Blobs that will be used in forward invocations. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">outputs</td><td>Blobs that will be used in forward invocations. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">targetId</td><td>Target identifier </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html" title="Derivatives of this class encapsulates functions of certain backends. ">BackendNode</a>, <a class="el" href="../../d6/d0f/group__dnn.html#ga709af7692ba29788182cf573531b0ff5" title="Enum of target devices for computations. ">Target</a></dd></dl>
<p><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html" title="This interface class allows to build new Layers - are building blocks of networks. ">Layer</a> don't use own Halide::Func members because we can have applied layers fusing. In this way the fused function should be scheduled. </p>
</div>
</div>
<a id="a070e355e782f14f97879f18747fd70fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a070e355e782f14f97879f18747fd70fc">◆ </a></span>finalize() <span class="overload">[1/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::dnn::Layer::finalize </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *&gt; &amp; </td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>output</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>outputs</td><td>=</td><td>cv.dnn_Layer.finalize(</td><td class="paramname">inputs[, outputs]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Computes and sets internal parameters according to inputs, outputs and blobs. </p>
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000045">Deprecated:</a></b></dt><dd>Use <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a45db2ad86a84737afa623976a957a7e6" title="Computes and sets internal parameters according to inputs, outputs and blobs. ">Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays)</a> instead </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>vector of already allocated input blobs </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>vector of already allocated output blobs</td></tr>
  </table>
  </dd>
</dl>
<p>If this method is called after network has allocated all memory for input and output blobs and before inferencing. </p>
</div>
</div>
<a id="a45db2ad86a84737afa623976a957a7e6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45db2ad86a84737afa623976a957a7e6">◆ </a></span>finalize() <span class="overload">[2/4]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::dnn::Layer::finalize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> </td>
          <td class="paramname"><em>outputs</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>outputs</td><td>=</td><td>cv.dnn_Layer.finalize(</td><td class="paramname">inputs[, outputs]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Computes and sets internal parameters according to inputs, outputs and blobs. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">inputs</td><td>vector of already allocated input blobs </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">outputs</td><td>vector of already allocated output blobs</td></tr>
  </table>
  </dd>
</dl>
<p>If this method is called after network has allocated all memory for input and output blobs and before inferencing. </p>
</div>
</div>
<a id="a0b9321b1c809d7804e602b6a862d2217"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b9321b1c809d7804e602b6a862d2217">◆ </a></span>finalize() <span class="overload">[3/4]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::dnn::Layer::finalize </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>outputs</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>outputs</td><td>=</td><td>cv.dnn_Layer.finalize(</td><td class="paramname">inputs[, outputs]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000047">Deprecated:</a></b></dt><dd>Use <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a45db2ad86a84737afa623976a957a7e6" title="Computes and sets internal parameters according to inputs, outputs and blobs. ">Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays)</a> instead </dd></dl>
</div>
</div>
<a id="a713fddc29f4cb873ea720a2c034dff48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a713fddc29f4cb873ea720a2c034dff48">◆ </a></span>finalize() <span class="overload">[4/4]</span></h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&gt; cv::dnn::Layer::finalize </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>inputs</em></td><td>)</td>
          <td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>outputs</td><td>=</td><td>cv.dnn_Layer.finalize(</td><td class="paramname">inputs[, outputs]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000048">Deprecated:</a></b></dt><dd>Use <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a45db2ad86a84737afa623976a957a7e6" title="Computes and sets internal parameters according to inputs, outputs and blobs. ">Layer::finalize(InputArrayOfArrays, OutputArrayOfArrays)</a> instead </dd></dl>
</div>
</div>
<a id="a39236126b72a365b94b132abd5bd946b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39236126b72a365b94b132abd5bd946b">◆ </a></span>forward() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::dnn::Layer::forward </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> *&gt; &amp; </td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>output</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>internals</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Given the <code>input</code> blobs, computes the output <code>blobs</code>. </p>
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000046">Deprecated:</a></b></dt><dd>Use <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ab3c05d3e918cd96c39bc95aee0522353" title="Given the input blobs, computes the output blobs. ">Layer::forward(InputArrayOfArrays, OutputArrayOfArrays, OutputArrayOfArrays)</a> instead </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">input</td><td>the input blobs. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">output</td><td>allocated output blobs, which will store results of the computation. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">internals</td><td>allocated internal blobs </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ab3c05d3e918cd96c39bc95aee0522353"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3c05d3e918cd96c39bc95aee0522353">◆ </a></span>forward() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::dnn::Layer::forward </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> </td>
          <td class="paramname"><em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> </td>
          <td class="paramname"><em>internals</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Given the <code>input</code> blobs, computes the output <code>blobs</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">inputs</td><td>the input blobs. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">outputs</td><td>allocated output blobs, which will store results of the computation. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">internals</td><td>allocated internal blobs </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="ae240acf2b7ad43531ca903c927334c8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae240acf2b7ad43531ca903c927334c8a">◆ </a></span>forward_fallback()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::dnn::Layer::forward_fallback </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga606feabe3b50ab6838f1ba89727aa07a">InputArrayOfArrays</a> </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> </td>
          <td class="paramname"><em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga889a09549b98223016170d9b613715de">OutputArrayOfArrays</a> </td>
          <td class="paramname"><em>internals</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Given the <code>input</code> blobs, computes the output <code>blobs</code>. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">inputs</td><td>the input blobs. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">outputs</td><td>allocated output blobs, which will store results of the computation. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">internals</td><td>allocated internal blobs </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a9a2476f50e854bbeb873fdfd18144c32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a2476f50e854bbeb873fdfd18144c32">◆ </a></span>getFLOPS()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d1/d1b/group__core__hal__interface.html#ga7cde0074dfd288f2d70c0e035dacb28a">int64</a> cv::dnn::Layer::getFLOPS </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp; </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp; </td>
          <td class="paramname"><em>outputs</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a3405ff43150088f3cc1d54f7e9b3ec29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3405ff43150088f3cc1d54f7e9b3ec29">◆ </a></span>getMemoryShapes()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::dnn::Layer::getMemoryShapes </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp; </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int </td>
          <td class="paramname"><em>requiredOutputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp; </td>
          <td class="paramname"><em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp; </td>
          <td class="paramname"><em>internals</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a47f9b49d9614ae8c1d76ff19eda3dae1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a47f9b49d9614ae8c1d76ff19eda3dae1">◆ </a></span>getScaleShift()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::dnn::Layer::getScaleShift </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>scale</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &amp; </td>
          <td class="paramname"><em>shift</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns parameters of layers with channel-wise multiplication and addition. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">scale</td><td>Channel-wise multipliers. Total number of values should be equal to number of channels. </td></tr>
    <tr><td class="paramdir">[out]</td><td class="paramname">shift</td><td>Channel-wise offsets. Total number of values should be equal to number of channels.</td></tr>
  </table>
  </dd>
</dl>
<p>Some layers can fuse their transformations with further layers. In example, convolution + batch normalization. This way base layer use weights from layer after it. Fused layer is skipped. By default, <code>scale</code> and <code>shift</code> are empty that means layer has no element-wise multiplications or additions. </p>
</div>
</div>
<a id="a3f8f7a01976709a0112be796dc8662ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f8f7a01976709a0112be796dc8662ad">◆ </a></span>initCUDA()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a>&gt; cv::dnn::Layer::initCUDA </td>
          <td>(</td>
          <td class="paramtype">void * </td>
          <td class="paramname"><em>context</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt;&gt; &amp; </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt;&gt; &amp; </td>
          <td class="paramname"><em>outputs</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns a CUDA backend node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">context</td><td>void pointer to CSLContext object </td></tr>
    <tr><td class="paramname">inputs</td><td>layer inputs </td></tr>
    <tr><td class="paramname">outputs</td><td>layer outputs </td></tr>
  </table>
  </dd>
</dl>
</div>
</div>
<a id="a0b980c3fbb9d0899484fd0ef1e2b4881"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0b980c3fbb9d0899484fd0ef1e2b4881">◆ </a></span>initHalide()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a>&gt; cv::dnn::Layer::initHalide </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>inputs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns Halide backend node. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">inputs</td><td>Input Halide buffers. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html" title="Derivatives of this class encapsulates functions of certain backends. ">BackendNode</a>, <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html" title="Derivatives of this class wraps cv::Mat for different backends and targets. ">BackendWrapper</a></dd></dl>
<p>Input buffers should be exactly the same that will be used in forward invocations. Despite we can use Halide::ImageParam based on input shape only, it helps prevent some memory management issues (if something wrong, Halide tests will be failed). </p>
</div>
</div>
<a id="a12e3a5730c04d9eb3944883bfe94ed4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a12e3a5730c04d9eb3944883bfe94ed4a">◆ </a></span>initInfEngine()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a>&gt; cv::dnn::Layer::initInfEngine </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>inputs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="aff6da8252d3558dbb23251b035aff5f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff6da8252d3558dbb23251b035aff5f6">◆ </a></span>initNgraph()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a>&gt; cv::dnn::Layer::initNgraph </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>nodes</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a95515bef8a2b8525248c1d7588c672be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95515bef8a2b8525248c1d7588c672be">◆ </a></span>initVkCom()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a>&gt; cv::dnn::Layer::initVkCom </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../df/d7b/classcv_1_1dnn_1_1BackendWrapper.html">BackendWrapper</a> &gt; &gt; &amp; </td>
          <td class="paramname"><em>inputs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a id="a93212cf0fe50ace40af0f2b4f42263c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93212cf0fe50ace40af0f2b4f42263c4">◆ </a></span>inputNameToIndex()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::dnn::Layer::inputNameToIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> </td>
          <td class="paramname"><em>inputName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns index of input blob into the input array. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inputName</td><td>label of input blob</td></tr>
  </table>
  </dd>
</dl>
<p>Each layer input and output can be labeled to easily identify them using "%&lt;layer_name%&gt;[.output_name]" notation. This method maps label of input blob to its index into input vector. </p>
<p>Reimplemented in <a class="el" href="../../db/d3e/classcv_1_1dnn_1_1LSTMLayer.html#a65ab14f117c7086b23e3429f50d6866e">cv::dnn::LSTMLayer</a>.</p>
</div>
</div>
<a id="a60ffc8238f3fa26cd3f49daa7ac0884b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a60ffc8238f3fa26cd3f49daa7ac0884b">◆ </a></span>outputNameToIndex()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual int cv::dnn::Layer::outputNameToIndex </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> &amp; </td>
          <td class="paramname"><em>outputName</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>retval</td><td>=</td><td>cv.dnn_Layer.outputNameToIndex(</td><td class="paramname">outputName</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Returns index of output blob in output array. </p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a93212cf0fe50ace40af0f2b4f42263c4" title="Returns index of input blob into the input array. ">inputNameToIndex()</a> </dd></dl>
<p>Reimplemented in <a class="el" href="../../db/d3e/classcv_1_1dnn_1_1LSTMLayer.html#a275295575f6b1a7b5c68d414bf7530aa">cv::dnn::LSTMLayer</a>.</p>
</div>
</div>
<a id="aa5697f2be7791040e7fb45d938211a93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa5697f2be7791040e7fb45d938211a93">◆ </a></span>run()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::dnn::Layer::run </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>inputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>outputs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a> &gt; &amp; </td>
          <td class="paramname"><em>internals</em> </td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table><table class="python_language"><tr><th colspan="999" style="text-align:left">Python:</th></tr><tr><td style="width: 20px;"></td><td>outputs, internals</td><td>=</td><td>cv.dnn_Layer.run(</td><td class="paramname">inputs, internals[, outputs]</td><td>)</td></tr></table>
</div><div class="memdoc">
<p>Allocates layer and computes output. </p>
<dl class="deprecated"><dt><b><a class="el" href="../../da/d58/deprecated.html#_deprecated000049">Deprecated:</a></b></dt><dd>This method will be removed in the future release. </dd></dl>
</div>
</div>
<a id="a43dab9b2aae0d48ae01cb70112009ee1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43dab9b2aae0d48ae01cb70112009ee1">◆ </a></span>setActivation()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::dnn::Layer::setActivation </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../dc/d75/classcv_1_1dnn_1_1ActivationLayer.html">ActivationLayer</a> &gt; &amp; </td>
          <td class="paramname"><em>layer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Tries to attach to the layer the subsequent activation layer, i.e. do the layer fusion in a partial case. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">layer</td><td>The subsequent activation layer.</td></tr>
  </table>
  </dd>
</dl>
<p>Returns true if the activation layer has been attached successfully. </p>
</div>
</div>
<a id="ad1bf1e5d77da2f75ea241e588c906177"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1bf1e5d77da2f75ea241e588c906177">◆ </a></span>setParamsFrom()</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void cv::dnn::Layer::setParamsFrom </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../db/db6/classcv_1_1dnn_1_1LayerParams.html">LayerParams</a> &amp; </td>
          <td class="paramname"><em>params</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Initializes only <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#ab2017c5a2f17d01868393985e3abe457" title="Name of the layer instance, can be used for logging or other internal purposes. ">name</a>, <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a5f3cdb2524e281094e14e212a76a2d38" title="Type name which was used for creating layer by layer factory. ">type</a> and <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html#a9a5578e0b3a0ec0301fb7320b54aa6ed" title="List of learned parameters must be stored here to allow read them by using Net::getParam(). ">blobs</a> fields. </p>
</div>
</div>
<a id="a14017804fd5e8c28807263bbdb415383"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a14017804fd5e8c28807263bbdb415383">◆ </a></span>supportBackend()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::dnn::Layer::supportBackend </td>
          <td>(</td>
          <td class="paramtype">int </td>
          <td class="paramname"><em>backendId</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Ask layer if it support specific backend for doing computations. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">backendId</td><td>computation backend identifier. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d6/d0f/group__dnn.html#ga186f7d9bfacac8b0ff2e26e2eab02625" title="Enum of computation backends supported by layers. ">Backend</a> </dd></dl>
</div>
</div>
<a id="afd329d7dfd4e38239bef14ecee9977cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd329d7dfd4e38239bef14ecee9977cb">◆ </a></span>tryAttach()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt;<a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a>&gt; cv::dnn::Layer::tryAttach </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html">BackendNode</a> &gt; &amp; </td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Implement layers fusing. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>Backend node of bottom layer. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="../../d2/dbb/classcv_1_1dnn_1_1BackendNode.html" title="Derivatives of this class encapsulates functions of certain backends. ">BackendNode</a></dd></dl>
<p>Actual for graph-based backends. If layer attached successfully, returns non-empty <a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">cv::Ptr</a> to node of the same backend. Fuse only over the last function. </p>
</div>
</div>
<a id="ae52d400e21d50885742aed859ce732ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae52d400e21d50885742aed859ce732ba">◆ </a></span>tryFuse()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::dnn::Layer::tryFuse </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="../../dc/d84/group__core__basic.html#ga6395ca871a678020c4a31fadf7e8cc63">Ptr</a>&lt; <a class="el" href="../../d3/d6c/classcv_1_1dnn_1_1Layer.html">Layer</a> &gt; &amp; </td>
          <td class="paramname"><em>top</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Try to fuse current layer with a next one. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">top</td><td>Next layer to be fused. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>True if fusion was performed. </dd></dl>
</div>
</div>
<a id="ae4b9f1b91fe12e625c1754c42c937a79"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae4b9f1b91fe12e625c1754c42c937a79">◆ </a></span>unsetAttached()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void cv::dnn::Layer::unsetAttached </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>"Deattaches" all the layers, attached to particular layer. </p>
</div>
</div>
<a id="aa41dc25bc70105151a6a96b59746bb14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa41dc25bc70105151a6a96b59746bb14">◆ </a></span>updateMemoryShapes()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool cv::dnn::Layer::updateMemoryShapes </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; <a class="el" href="../../d6/d0f/group__dnn.html#ga8a9ab61770c140f0fa2880c90aeae832">MatShape</a> &gt; &amp; </td>
          <td class="paramname"><em>inputs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a9a5578e0b3a0ec0301fb7320b54aa6ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a5578e0b3a0ec0301fb7320b54aa6ed">◆ </a></span>blobs</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="../../d3/d63/classcv_1_1Mat.html">Mat</a>&gt; cv::dnn::Layer::blobs</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>List of learned parameters must be stored here to allow read them by using <a class="el" href="../../db/d30/classcv_1_1dnn_1_1Net.html#a767f2a693ba409bedc442adca3b71511" title="Returns parameter blob of the layer. ">Net::getParam()</a>. </p>
</div>
</div>
<a id="ab2017c5a2f17d01868393985e3abe457"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2017c5a2f17d01868393985e3abe457">◆ </a></span>name</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> cv::dnn::Layer::name</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Name of the layer instance, can be used for logging or other internal purposes. </p>
</div>
</div>
<a id="a35e0e4f0e8441d1b0e62c596df6b1942"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a35e0e4f0e8441d1b0e62c596df6b1942">◆ </a></span>preferableTarget</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int cv::dnn::Layer::preferableTarget</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>prefer target for layer forwarding </p>
</div>
</div>
<a id="a5f3cdb2524e281094e14e212a76a2d38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f3cdb2524e281094e14e212a76a2d38">◆ </a></span>type</h2>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../dc/d84/group__core__basic.html#ga1f6634802eeadfd7245bc75cf3e216c2">String</a> cv::dnn::Layer::type</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Type name which was used for creating layer by layer factory. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>opencv2/dnn/<a class="el" href="../../db/ddc/dnn_2dnn_8hpp.html">dnn.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:47 for OpenCV by  <a href="http://www.doxygen.org/index.html">
<img alt="doxygen" class="footer" src="../../doxygen.png"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
